#include "argue.h"

void update_argue_to_flash(ARGUE_TABLE_TypeDef *pt     )
//               ,float  pid_arg_angle_roll_p,
//               float  pid_arg_palstance_roll_p,
//               float  pid_arg_angle_pitch_i,
//               float  pid_arg_palstance_pitch_i,
//               float  pid_arg_angle_yaw_d,
//               float  pid_arg_palstance_yaw_d,
//               S_INT16_XYZ mpu_gyo_offset,
//               S_INT16_XYZ mpu_acc_offset)
{
//    if(pid_arg_angle_roll_p!=0xffff) pt->pid_arg_angle_roll_p=pid_arg_angle_roll_p;
//    if(pid_arg_angle_yaw_p!=0xffff) pt->pid_arg_angle_yaw_p=pid_arg_angle_roll_p;
//    if(pid_arg_angle_roll_p!=0xffff) pt->pid_arg_angle_roll_p=pid_arg_angle_roll_p;
//    
//    
//    if(pid_arg_angle_pitch_i!=0xffff) pt->pid_arg_angle_pitch_i=pid_arg_angle_pitch_i;
//    if(pid_arg_angle_yaw_d!=0xffff) pt->pid_arg_angle_yaw_p=pid_arg_angle_yaw_d;
//    
//    if(pid_arg_palstance_roll_p!=0xffff) pt->pid_arg_palstance_roll_p=pid_arg_palstance_roll_p;
//    if(pid_arg_palstance_pitch_i!=0xffff) pt->pid_arg_palstance_pitch_i=pid_arg_palstance_pitch_i;
//    if(pid_arg_palstance_yaw_d!=0xffff) pt->pid_arg_palstance_yaw_d=pid_arg_palstance_yaw_d;
      flash_write((uint32_t)argue_table_const,
                   (uint16_t *)pt,
                   sizeof(ARGUE_TABLE_TypeDef) /2);
      PID_updatePID3_by_flash();   
}